<div id="index_s_block">
                        <div id="index_s_block_head" class="scroll_to">
                            
                        </div>
                        
                        <div id="index_s_block_body">
                            
                            <?php
                                $i = 1;
                                $site_url = base_url();
                                foreach($catlist as $v){
                                    $class = '';
                                    if(($i++)%2){
                                        $class = 'index_s_block_body_list_first';
                                    }
                                    $icon = image_asset("category/{$v['id']}/{$v['img']}", '', array('alt'=>$v['name_th'],'class'=>''));
                                    echo <<<ddd
                                        <div class="index_s_block_body_list {$class}">
                                            <div class="index_s_block_body_list_title">
                                                {$icon}
                                                <h3><a href="{$site_url}category/{$v['id']}-{$v['name_th']}" title="{$v['name_th']}">{$v['name_th']}</a></h3>
                                            </div>
                                            <div class="index_s_block_body_list_detail">
ddd;
                                    
                                    foreach($v['sub'] as $vv){
                                        echo "<h4><a href=\"{$site_url}category/{$v['id']}-{$v['name_th']}/{$vv->id}-{$vv->name_th}\" title=\"{$vv->name_th}\">" , $vv->name_th , '</a></h4>&nbsp;';
                                    }
                                    
                                    echo <<<ddd
                                            </div>
                                        </div>
ddd;
                                }
                            ?>
                            <div class="clear"></div>
                        </div>
                        
                        <div id="index_s_block_footer">
                            
                        </div>
                    </div>